<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>轮播图</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }
        li {
            list-style: none;
        }
        a {
            color: black;
            display: block;
            text-decoration: none;
        }
        img {
            display: block;
        }

        .carousel {
            width: 590px;
            height: 470px;
            position: relative;
            margin: auto;
            left: 0;
            right: 0;
            overflow: hidden;
        }

        .prev, .next {
            position: absolute;
            font-size: 50px;
            font-weight: bold;
            width: 100px;
            height: 70px;
        }

        .prev {
            top: 210px;
            left: -40px;
            z-index: 999;
            text-align: center;
            line-height: 70px;
            background-color: rgba(87, 80, 80, 0.2);
            border-radius: 50px;
            text-indent: 2rem;
            color: gray;
        }

        .next {
            top: 210px;
            right: -40px;
            z-index: 999;
            text-align: center;
            line-height: 70px;
            background-color: rgba(87, 80, 80, 0.2);
            border-radius: 50px;
            text-indent: -2rem;
            color: gray;
        }


        .carousel-img-list {
            position: absolute;
            top: 0;
            left: 0;
        }
        .carousel-img-list ul li {
            position: absolute;
            top: 0;
            left: 0;
        }

        .carousel > ul {
            position: absolute;
            font-size: 30px;
            font-weight: bold;
            bottom: 20px;
            left: 100px;
        }

        .carousel > ul li{
            float: left;
            width: 10px;
            height: 10px;
            border-radius: 5px;
            color: #ded1d1;
            text-align: center;
            line-height: 10px;
            background-color: #ded1d1;
            margin: 0 5px;
        }


    </style>
</head>
<body>
<!--590 * 470 轮播图-->
<div class="carousel">
    <div class="prev"><a href="#">&lt;</a></div>
    <div class="carousel-img-list">
        <ul>
            <li><a href="#"><img src="./imgs/2.jpg" alt=""></a></li>
            <li><a href="#"><img src="./imgs/3.jpg" alt=""></a></li>
            <li><a href="#"><img src="./imgs/4.jpg" alt=""></a></li>
            <li><a href="#"><img src="./imgs/5.jpg" alt=""></a></li>
            <li><a href="#"><img src="./imgs/6.jpg" alt=""></a></li>
            <li><a href="#"><img src="./imgs/7.jpg" alt=""></a></li>
            <li><a href="#"><img src="./imgs/8.jpg" alt=""></a></li>
        </ul>
    </div>
    <div class="next"><a href="#">&gt;</a></div>
    <ul>
        <li><a href="#">·</a></li>
        <li><a href="#">·</a></li>
        <li><a href="#">·</a></li>
        <li><a href="#">·</a></li>
        <li><a href="#">·</a></li>
        <li><a href="#">·</a></li>
        <li><a href="#">·</a></li>
    </ul>
</div>
</body>
</html>